/*
 ============================================================================
 Name		: stopwatchDocument.cpp
 Author	  : Huang.haiyang
 
     This is free software; you can redistribute it and/or
     modify it under the terms of the GNU Lesser General Public
	 License as published by the Free Software Foundation; either
     version 2 of the License, or (at your option) any later version.
 
     This software is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     Lesser General Public License for more details.
     
 Description : CStopwatchDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "app\stopwatchDocument.h"
#include "app\stopwatchAppui.h"

// ================= MEMBER FUNCTIONS =======================

// constructor
CStopwatchDocument::CStopwatchDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	}

// destructor
CStopwatchDocument::~CStopwatchDocument()
	{
	}

// EPOC default constructor can leave.
void CStopwatchDocument::ConstructL()
	{
	}

// Two-phased constructor.
CStopwatchDocument* CStopwatchDocument::NewL(CEikApplication& aApp) // CstopwatchApp reference
	{
	CStopwatchDocument* self = new (ELeave) CStopwatchDocument(aApp);
	CleanupStack::PushL(self);
	self->ConstructL();
	CleanupStack::Pop();

	return self;
	}

// ----------------------------------------------------
// CStopwatchDocument::CreateAppUiL()
// constructs CstopwatchAppUi
// ----------------------------------------------------
//
CEikAppUi* CStopwatchDocument::CreateAppUiL()
	{
	return new (ELeave) CStopwatchAppUi;
	}

